package com.itbaizhan.mapper;

import com.itbaizhan.pojo.Teacher;

import java.util.List;

public interface TeacherMapper {
    /*两个实体类都对方的集合属性*/
    //多对多查询 先写sql语句
    /*select * from teacher left join classes_teacher on teacher.tid = classes_teacher.tid
    * left join classes on classes.cid =   classes_teacher.cid*/
    List<Teacher> findAll();
}
